package com.phs.main.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.phs.main.web.po.SysUsers;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 个人信息
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserInfoVO extends VO {
	@ExcelProperty("用户ID")
	private long id;

	@ExcelProperty("姓名")
	private String name;

	@ExcelProperty("年龄")
	private Integer age;

	@ExcelProperty("身份证号")
	private String idNum;

	@ExcelProperty("电话")
	private String tel;

	@ExcelProperty("地址")
	private String address;

	public UserInfoVO(SysUsers user) {
		this.id = user.getUserId();
		this.name = user.getUserName();
		this.age = user.getAge();
		this.idNum = user.getIdNum();
		this.tel = user.getTel();
		this.address = user.getAddress();
	}

	public UserInfoVO(UserInfoVO user) {
		this.id = user.getId();
		this.name = user.getName();
		this.age = user.getAge();
		this.idNum = user.getIdNum();
		this.tel = user.getTel();
		this.address = user.getAddress();
	}

}
